<div class="ui_header_top">
  <div class="ui_header_center">
    <div class="ui_header_left"> {if $do!='index'||!$do} <a href="index.php?do=index" class="nav-item-link active">回到首页</a> {/if} <a href="{$_K[siteurl]}/">欢迎您来到{$_K[sitename]}</a>  {if $uid} <a href="index.php?do=logout" class="nav-item-link active">退出登陆</a>{/if}</div>
    <div class="ui_header_right">
      <ul>
        <!--{eval $uid=$_SESSION ['uid'];}--> 
        <!--{eval $username=$_SESSION['username'];}--> 
        {if $uid}
        <li id="denglu"><a href="index.php?do=user&view={$userUrl}" id="nings">{$username}</a><a href="index.php?do=user&view=message&op=notice">{if $messagecount}({$messagecount}){/if}</a></li>
        <li><a href="index.php?do=user&view=gz&op=gy">我的订单</a></li>
        <li class="ui_header_icon"><a href="index.php?do=user&view=transaction&op=released" class="ui_header_icon_a">我是雇主</a>
          <dl>
           <dd><a href="index.php?do=user&view=transaction&op=released">已发任务</a></dd>
            <dd><a href="index.php?do=sellerlist">找服务商</a></dd>
            <dd><a href="index.php?do=pubtask">发布需求</a></dd>  
          </dl>
        </li>
        <li class="ui_header_icon"><a href="index.php?do=seller&id={$uid}"  class="ui_header_icon_a">我是机构</a>
          <dl>
            <dd><a href="index.php?do=seller&id={$uid}">我的店铺</a></dd>
            <dd><a href="index.php?do=user&amp;view=wk&amp;op=gy&amp;s=seller_confirm">新的雇佣</a></dd>
            <dd><a href="index.php?do=pubgoods&id=7&step=step1">发布服务</a></dd>
            <dd><a href="index.php?do=user&view=wk&op=mark">交易管理</a></dd>
            <dd><a href="index.php?do=user&view=shop&op=setting">店铺设置</a></dd>
          </dl>
        </li>
        {else}
        <li><a href="index.php?do=login">登录</a></li>
        <li><a href="index.php?do=register">免费注册</a></li>
        <li class="ui_header_icon"><a href="index.php?do=user&view=transaction&op=released" class="ui_header_icon_a">我是雇主</a>
          <dl>
            <dd><a href="index.php?do=sellerlist">找服务商</a></dd>
            <dd><a href="index.php?do=pubtask">发布需求</a></dd>
          </dl>
        </li>
        <li class="ui_header_icon"><a href="index.php?do=login"  class="ui_header_icon_a">我是机构</a>
          <dl>
            <dd><a href="index.php?do=seller&id={$uid}">我的店铺</a></dd>
            <dd><a href="index.php?do=user&amp;view=wk&amp;op=gy&amp;s=seller_confirm">新的雇佣</a></dd>
            <dd><a href="index.php?do=pubgoods&id=7&step=step1">发布服务</a></dd>
            <dd><a href="index.php?do=user&view=wk&op=mark">交易管理</a></dd>
            <dd><a href="index.php?do=user&view=shop&op=setting">店铺设置</a></dd>
          </dl>
        </li>
        {/if}
        <li><a href="http://wpa.qq.com/msgrd?v=3&amp;uin={$_K[kefu_qq]}&amp;site=qq&amp;menu=yes"  target="_blank"  rel="nofollow">联系客服</a></li>
        <li class="ui_header_icon"><a href="index.php?do=help"  class="ui_header_icon_a">帮助中心</a>
          <dl>
            <dd><a href="index.php?do=help&id=296">帐号安全</a></dd>
            <dd><a href="index.php?do=help&id=310">相关认证</a></dd>
            <dd><a href="index.php?do=help&id=297">提现充值</a></dd>
            <dd><a href="index.php?do=help&id=346">交易维权</a></dd>
            <dd><a href="index.php?do=help&id=326">交易付款</a></dd>
            <dd><a href="index.php?do=help&id=347">违规</a></dd>
          </dl>
        </li>
        <div class="clear"></div>
      </ul>
    </div>
    <div class="clear"></div>
  </div>
</div>
<div class="header_ad"> 

{if $do=='index'}
     <!--{ad_show(HOME_CENTAL_THREE,1)}--><span id="top_close"> <img src="/style/img/close.png" /> </span> 
{elseif $do=='goodslist'}
<!--{ad_show(SHOPLIST_HEAD,1)}--><span id="top_close"> <img src="/style/img/close.png" /> </span> 
{elseif $do=='sellerlist'}
<!--{ad_show(SELLERLIST_HEAD,1)}--><span id="top_close"> <img src="/style/img/close.png" /> </span> 

{elseif $do=='tasklist'}
<!--{ad_show(TASKLIST_HEAD,1)}--> <span id="top_close"> <img src="/style/img/close.png" /> </span> 
{/if}

</div>
<!-- 首页顶部广告关闭按钮JS--> 
<script>
$("#top_close").click(function(){
       $(".header_ad").css("display","none");
  });
if ($('.header_ad a').length==0){ 
$(".header_ad").css("display","none");
}

  

</script> 
<!-- 首页顶部广告关闭按钮JS-->

{if $do=='index'}
{else}
<!--搜索框部分开始-->
<div class="hseach">
	
    <!--{eval 
 
     switch($do){
      	case index:
        $daoming="首页";
        break; 
        case sellerlist:
         $daoming="服务机构";
        break;
        case goodslist:
       $daoming="服务商城";
      
        break;
        case tasklist:
        $daoming="需求大厅";
      
        break;
        case task:
          $daoming="需求大厅";
        break;
        case articlelist:
          $daoming="认证社区";
        break;
        case gy:
         $daoming="雇佣工作";
        break;
        case article:
          $daoming="认证社区";
        break;
        case help:
       $daoming="帮助中心";
        break;
        case single:
        $daoming="关于我们";
        break;
        case seller:
         $daoming="个人店铺";
        break;
        case user:
        $daoming="用户中心";
        break;  
        
        case goods:
        $daoming="服务商城";
        break; 
         case order:
        $daoming="服务商城";
        break;   
         case pubtask:
        $daoming="发布需求";
        break;  
        
         case pubgoods:
        $daoming="发布商品";
        break;  
         case taskhandle:
        $daoming="招标报价";
        break;  
        
      
        
      }
    
    }-->
    <div class="nlogo"><a href="/"><img src="{$strWebLogo}" alt="{$_K[sitename]}<!--{eval echo $daoming;}-->" /></a></div>
    <div class="sweizhi"><!--{eval echo $daoming;}--></div>

    
    
    
    <div class="header_wrap_seach">
    <div class="header_seach">
      <form action="{if $do =='tasklist'||$do =='goodslist'||$do =='sellerlist'}{$strUrl}{else}index.php?do=goodslist{/if}" id="myform"  role="search"  method="post">
        <div class="seach_action_select_name"> <a id="seach_action_name">{if $do=='index'}
     服务
{elseif $do=='sellerlist'}
服务商
{elseif $do=='tasklist'}
需求
{else}
服务
{/if} </a>
          <ul id="searchOption">
            <li class="active"> <a id="tasklist" onclick="qiehuan('index.php?do=tasklist','需求')">需求</a> </li>
            <li > <a id="sellerlist" onclick="qiehuan('index.php?do=sellerlist','服务商')">服务商</a> </li>
            <li > <a id="goodslist" onclick="qiehuan('index.php?do=goodslist','服务')">服务</a> </li>
          </ul>
        </div>
        <input type="text" name="ky" id="search_test" placeholder="请输入关键词" value="{if $ky}{$ky}{/if}"popup="true"  data-toggle="服务商" x-webkit-speech="" x-webkit-grammar="bUIltin:search" lang="zh-CN"  aria-haspopup="true" aria-expanded="false" autocomplete="off">
        <button type="submit" id="seach_submit"> 搜索 </button>
        <div class="clear"></div>
      </form>
      
      <!--搜索框代码--> 
      <script language="javascript">
function qiehuan(url,val){
		 $("#seach_action_name").html(val);
		 $(myform).attr("action",url);
		 $(search_test).attr("data-toggle",val);
		 $("#searchOption").hide();
		  
		}
$(".seach_action_select_name").hover(function(){
	 $("#searchOption").show();
},function(){
    $("#searchOption").hide();
} )


	  

</script> 
    </div>
    
  </div>
  <div class="header_release"> <span>或者</span> <a href="index.php?do=pubtask">免费发布需求</a>
    <div class="clear"></div>
  </div>
    <div class="clear"></div>
</div>
<!--搜索框部分结束-->
{/if}

